//
//  ViewController.m
//  UIViewTransformPoint
//
//  Created by codew on 4/30/21.
//

#import "ViewController.h"
#import "WTUserCenter.h"

#import "WTUserTest.h"

@interface ViewController ()



@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    
    
    
    [self ttRun4];
}

/**
 动态添加方法测试
 */
- (void)ttRun4
{
    [self performSelector:@selector(xxxxx)];
}



/**
 方法交换
 */

- (void)ttRun3
{
    WTUserTest * testObj = [[WTUserTest alloc] init];
    [testObj test];
    
    NSLog(@"===========");
//    [WTUserTest test];
}

/**
 消息转发
 */
- (void)ttRun2
{
    NSLog(@"hi~");
    
    WTUserCenter * obj1 = [[WTUserCenter alloc] init];
    obj1.name = @"zs";
    [obj1 test];
}


/**
 消息传递补充
 */
- (void)ttRun1
{
    
    /**
     Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[WTUserCenter<0x1044e96f8> init]: cannot init a class object.'
     terminating with uncaught exception of type NSException
     */
//    [WTUserCenter init];
    
    /**
     Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[WTUserCenter test]: unrecognized selector sent to class
     */
//    [WTUserCenter performSelector:@selector(test)];
    
    // ok ok ok ~~~~~~~~~~~~~~~~`
    [WTUserCenter isEqual:@"晚上好啊~"];
    
    
}

@end
